#ifndef _INSTRUCT_H_
#define _INSTRUCT_H_ 1
#include "register.h"
#include "def.h"
#define byte2int(a,b,c,d) ((a&0xFF)<<24)|((b&0xFF)<<16)|((c&0xFF)<<8)|(d&0xFF)

typedef int (*isRunFun)(char);
typedef int (*parseRunFun)(Register*);

#define instructInit(X) {X##IsRun,X##ParseRun}

typedef struct{
	isRunFun isRun;
	parseRunFun parseRun;
}instruct,*instructP;



#endif

